﻿import request from '/@/utils/request';
enum Api {
  AddSysMqPublish = '/api/sysMqPublish/add',
  DeleteSysMqPublish = '/api/sysMqPublish/delete',
  UpdateSysMqPublish = '/api/sysMqPublish/update',
  PageSysMqPublish = '/api/sysMqPublish/page',
  ExportSysMqPublish = 'api/sysMqPublish/export',
}

//导出队列发布
export const exportSysMqPublishExcel=(params?:any)=>
	request({
		url:Api.ExportSysMqPublish,
		method:'post',
		data:params,
		responseType: 'blob'
	});

// 增加队列发布
export const addSysMqPublish = (params?: any) =>
	request({
		url: Api.AddSysMqPublish,
		method: 'post',
		data: params,
	});

// 删除队列发布
export const deleteSysMqPublish = (params?: any) => 
	request({
			url: Api.DeleteSysMqPublish,
			method: 'post',
			data: params,
		});

// 编辑队列发布
export const updateSysMqPublish = (params?: any) => 
	request({
			url: Api.UpdateSysMqPublish,
			method: 'post',
			data: params,
		});

// 分页查询队列发布
export const pageSysMqPublish = (params?: any) => 
	request({
			url: Api.PageSysMqPublish,
			method: 'post',
			data: params,
		});


